/* eslint-disable semi */
/* eslint-disable semi */
/* eslint-disable quotes */
<template>
    <div class="frame">
        <div class="contact-top">
            <div class="top-icon"
                 @click="BackHam()">

                <van-icon name="arrow-left"
                          size="20"
                          color="#888" />
            </div>

            <div class="text-top">结算页</div>
        </div>
        <div class="add-he"> </div>
        <div class="way"
             v-for="(itemlist, index) in Piglist"
             :key="index">
            <div class="way-1">
                <div class="way-1-1">
                    <img :src="itemlist.imgSrc"
                         alt />
                </div>
                <div class="way-1-2">
                    <p class="pig">{{itemlist.Pig}}</p><br>
                    <p class="pig">
                        <van-button size="small"
                                    type="warning">预期收益</van-button>
                    </p>
                </div>
            </div>

        </div>

        <div class="add-he"> </div>

        <div>
            <div class="paymoney">
                <span> 需要支付金额： </span>
                <h4>¥5000.00 </h4>

            </div>

        </div>

        <div>
            <div class="text-1"><span> 付款方式 </span> </div>
            <div class="text-2"
                 :class="[checkclick==1?'addclick':'']">
                <div class="text-2-1">
                    <van-icon color="#02c044"
                              size="30"
                              name="chat" />
                </div>
                <div class="addpadding"> <span> 微信支付 </span> </div>
            </div>

            <div class="text-2"
                 :class="[checkclick==2?'addclick':'']">
                <div class="text-2-1">
                    <van-icon color="#02c044"
                              size="30"
                              name="stop-circle" />
                </div>
                <div class="addpadding"> <span> 线下支付 </span> </div>

                <div class="checked-pay">
                    <van-radio-group v-model="radio">
                        <van-radio class="adddistance"
                                   name="1"
                                   icon-size="0.6667rem"
                                   checked-color="#07c160"
                                   @click="choosepay(1)">
                        </van-radio>
                        <van-radio name="2"
                                   icon-size="0.6667rem"
                                   checked-color="#07c160"
                                   @click="choosepay(2)"></van-radio>
                    </van-radio-group>
                </div>

            </div>
            <div class="text-3">

                <div class="text-2-1">
                    <van-icon color="#02c044"
                              size="30"
                              name="wechat" />
                </div>
                <div class="addpadding addfont"> <span> 我已阅读 </span>

                    <router-link to="/Purchase">

                        <span class="addcolor"> 《购买协议》</span>
                    </router-link>
                </div>

            </div>

        </div>

        <div class="lastadd"> 确定下单</div>
    </div>

</template>

<script>
export default {
    components: {},
    data() {
        return {
            active: 0,
            value: 5,
            message: "",
            radio: "1",
            Piglist: [
                {
                    id: 0,
                    Ordernum: "2019121615435732183515424991",
                    Pay: "待支付",
                    Pig: "乌金猪",
                    Date: "第1期",
                    Way: "现金",
                    Money: "5000.00",
                    Month: "8",
                    Schedule: 74,
                    imgSrc: require("../assets/images/a11.jpg"),
                    imgSrcover: require("../assets/images/a13.png")
                }
            ],
            checkclick: 1
        };
    },
    methods: {
        BackHam() {
            this.$router.push({ path: "/Order" });
        },
        choosepay(id) {
            if (id == 1) {
                this.checkclick = id;
            } else {
                this.checkclick = id;
            }
        }
    }
};
</script>

<style scoped>
* {
    padding: 0;
    margin: 0;
}
body {
    background-color: #f6f6f6;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    display: block;
}
div {
    box-sizing: border-box;
}
.frame {
    width: 100%;
    height: 227.4px;
    background: #ffffff;
}
.contact-top {
    width: 100%;
    height: 48.6px;
    line-height: 48.6px;
    text-align: center;
    border-bottom: 1px solid #f6f6f6;
    display: flex;
}
.top-icon {
    width: 21px;
    height: 48.6px;
    padding-left: 17px;
    padding-top: 8px;
}
.text-top {
    width: 248px;
    height: 48px;
    text-align: center;
    max-width: 60%;
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: 15px;
    line-height: 55px;
    padding-right: 10px;
}

.contact-content {
    width: 100%;
    height: auto;
    padding: 16px 12px;
    text-align: left;
    font-size: 17px;
    font-family: 宋体;
}
.contact-content p {
    height: 30px;
    line-height: 30px;
    color: #323233;
}

.text-milldle {
    width: 100%;
    height: 55px;
    background: #f6f6f6;
    font-size: 16px;
    display: flex;
}

.icon-1 {
    width: 20px;
    margin-top: 15px;
}
.service-1 {
    height: 30px;
    width: 30px;
    display: flex;
    padding-top: 13px;
    margin-left: 145px;
}
.service-2 {
    height: 30px;
    width: 72px;
    display: flex;
    line-height: 55px;
}
.way {
    width: 100%;
    height: 145px;
    display: flex;
}

.way-1 {
    width: 150px;
    height: 104px;
    padding-top: 20px;
    padding-left: 10px;
    display: flex;
}
.way-1-1 {
    width: 120px;
    height: 64px;
}
.way-1-2 {
    width: 70px;
    height: 30px;
    padding-left: 10px;
    font-size: 16px;
}
h5 {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
    color: #555;
}

.add-he {
    width: 100%;
    height: 9px;
    background: #f6f6f6;
}

.getbox {
    padding: 21px 27px;
}

.lastadd {
    position: fixed;
    bottom: 0px;
    background: #37cd87;
    width: 100%;
    height: 50px;
    color: #fff;
    line-height: 50px;
    font-size: 18px;
}
.add-button {
    width: 100%;
    font-size: 16px;
    letter-spacing: 1px;
    height: 42px;
    line-height: 42px;
}

.addline {
    width: 100%;
    height: 9px;
    background: #f6f6f6;
}
.paymoney {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: left;
    font-size: 18px;
    display: flex;
    border-bottom: 2px solid #f6f6f6;
}
.text-1 {
    padding-top: 10px;
    text-align: left;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 550;
}
.text-2 {
    height: 50px;
    padding-top: 10px;
    padding-left: 25px;
    text-align: left;
    font-size: 16px;
    line-height: 30px;
    display: flex;
    border-radius: 5px;
    margin: 0 12px 0 12px;
}
.text-2-1 {
    display: flex;
}

.text-3 {
    padding-top: 10px;
    padding-left: 5px;
    text-align: left;
    font-size: 16px;
    line-height: 30px;
    display: flex;
}
.addrotate {
    transform: rotate(90deg);
}
.addpadding {
    padding-left: 10px;
}
.addfont {
    font-weight: 600;
}
.addcolor {
    color: #40d088;
}
.checked-pay {
    width: 50px;
    height: 50px;
    display: flex;
    padding-left: 170px;
    margin-top: -30px;
}
.adddistance {
    margin-top: -16px;
    margin-bottom: 22px;
}
.addclick {
    background: #323233;
    color: #ffffff;
}
</style>

